package com.ror.domain;

//花色
public enum PokerColor {
    SPADE("黑桃","♤", 1),
    HEART("红桃","♡", 2),
    CLUB("梅花","♧", 3),
    DIAMOND("方片","♢", 4),
    RED_JOKER("大王", "\uD83E\uDD21", 5),
    BLACK_JOKER("小王","\uD83C\uDCCF", 5)
    ;

    private final String name;
    private final String emoji;
    public final int assetCode; //用于获取贴图的代号

    PokerColor(String name, String emoji, int assetCode) {
        this.name = name;
        this.emoji = emoji;
        this.assetCode = assetCode;
    }

    public boolean isJoker() {
        return this == RED_JOKER || this == BLACK_JOKER;
    }

    public String getName() {
        return name;
    }

    public String getEmoji() {
        return emoji;
    }
}
